package com.tanie.fenxiao.entities;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

@Entity
@Table(name = "commission")//获取表名
public class Commission extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;

	@ManyToOne(cascade = { javax.persistence.CascadeType.PERSIST }, fetch = FetchType.EAGER)
	@JoinColumn(name = "user")//加入列为主键
	@NotFound(action = NotFoundAction.IGNORE)
	private User user;//用户
	private Integer type;//类型
	private Double money;//金额
	private String no;//是否可用
	private Integer level;//水平级别
	private String lowerLevelNo;//下线数
	private String remark;//备注
	private String operator;//操作员

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getNo() {
		return this.no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getLowerLevelNo() {
		return this.lowerLevelNo;
	}

	public void setLowerLevelNo(String lowerLevelNo) {
		this.lowerLevelNo = lowerLevelNo;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
}
